package com.yygo.service.impl;

import com.yygo.dao.CertificateDao;
import com.yygo.dao.CityDao;
import com.yygo.model.Certificate;
import com.yygo.service.CertificateManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by tiansha on 2015/7/6.
 */
@Service("certificateManager")
public class CertificateManagerImpl  extends GenericManagerImpl<Certificate, Long> implements CertificateManager {

    private CertificateDao certificateDao;

    @Autowired
    public CertificateManagerImpl(CertificateDao certificateDao) {
        super(certificateDao);
        this.certificateDao = certificateDao;
    }

    @Override
    public List<Certificate> getCertificatesByType(String type) {
        return this.certificateDao.getCertificatesByType(type);
    }
}
